<table class="table table-hover" style="table-layout:fixed;">
    <thead>
        <tr>
            <th width="45">站点</th>
            <th width="70">SKU</th>
            <th width="220">产品名称</th>
            <th width="80">季节性</th>
            <th width="100">品类</th>
            @foreach($shippingDate as $label)
                <th width="100">
                    <span class="label" style="color: #000;font-size: 100%;padding: .2em 0 .3em;">
                        {{ $label }}需求
                    </span>
                </th>
            @endforeach
        </tr>
    </thead>
    <tbody>
        @foreach($paginator as $row)
            <tr>
                <td>{{ $row->area->area ?? '' }}</td>
                <td>{{ $row->sku->psku_code ?? '' }}</td>
                <td><span style="font-size: 85%;padding: .2em 0 .3em;">{{ $row->sku->psku_cn ?? '' }}</span></td>
                <td>{{ \App\Models\Product\ProductClassify::$_season[$row->skuClassify->season ?? 3] }}</td>
                <td><span style="font-size: 85%;padding: .2em 0 .3em;">{{ $row->skuClassify->title ?? '' }}</span></td>
                @php
                    $applyNum = \App\Models\Shipping\SSkuApply::getApplyNum($row->area_id,$row->psku_id,$shippingDateFirst,$shippingDateLast);
                @endphp
                @foreach($shippingDate as $date)
                    <td>{{ array_key_exists($date,$applyNum) ? $applyNum[$date] : 0 }}</td>
                @endforeach
            </tr>
        @endforeach
    </tbody>
</table>
